package com.deft.design.observer;

/**
 * @author Hide丶love
 * @date 2022/05/18
 **/
public class MinibusTargetService {

    /**
     * 模拟摇号
     * @param uId 用户ID
     * @return 结果
     */
    public String lottery(String uId) {
        return Math.abs(uId.hashCode()) % 2 == 0 ? "恭喜你，编码".concat(uId).concat("在本次摇号中签") : "很遗憾，编码".concat(uId).concat("在本次摇号未中签或摇号资格已过期");
    }
}
